package cn.com.cifi.mars.entity.common;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 历史日志表
 * </p>
 *
 * @author plx
 * @since 2020-02-12
 */
@TableName("t_sys_history_log")
public class SysHistoryLog implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.INPUT)
    private String id;

    /**
     * 用户账号 用户名 英文
     */
    private String useraccount;

    /**
     * 标题
     */
    private String title;

    /**
     * 模块 
     */
    private String module;

    /**
     * ip地址
     */
    private String ip;

    /**
     * 接口路径
     */
    private String url;

    /**
     * 事件  浏览 增加 删除  修改
     */
    private String event;

    /**
     * 日志内容
     */
    private String content;

    /**
     * 访问来源
     */
    private String source;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 0.操作日志 1.系统日志
     */
    private String type;

    /**
     * 调用结果 0:成功 1:失败 默认是0
     */
    private String isSuccess;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public String getUseraccount() {
        return useraccount;
    }

    public void setUseraccount(String useraccount) {
        this.useraccount = useraccount;
    }
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
    public String getModule() {
        return module;
    }

    public void setModule(String module) {
        this.module = module;
    }
    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }
    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
    public String getEvent() {
        return event;
    }

    public void setEvent(String event) {
        this.event = event;
    }
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
    public String getIsSuccess() {
        return isSuccess;
    }

    public void setIsSuccess(String isSuccess) {
        this.isSuccess = isSuccess;
    }

    @Override
    public String toString() {
        return "SysHistoryLog{" +
        "id=" + id +
        ", useraccount=" + useraccount +
        ", title=" + title +
        ", module=" + module +
        ", ip=" + ip +
        ", url=" + url +
        ", event=" + event +
        ", content=" + content +
        ", source=" + source +
        ", createTime=" + createTime +
        ", type=" + type +
        ", isSuccess=" + isSuccess +
        "}";
    }
}
